﻿@model TankIt.Models.HoldEmTable
@{
    ViewBag.Title = "Home Page";
}

<div class="row">
    <div class="large-12 columns">
        <h1>Welcome to Tank It</h1>
    </div>
</div>
<div class="row">
    <div class="large-12 columns">
        <div class="panel">
                    <h3>Table:</h3>
                    <h3><small>@Model.TableID</small></h3>
            <p>Possible Pocket Combos: @TankIt.Models.Math.Statistics.Combinations(52, 2)</p>
            @foreach(var s in Model.Seats){
            <div class="row">
                <div class="large-12 columns">
                    <h4>@s.Player.Name:</h4>
                    <p>@((new TankIt.Models.Games.HoldEm.PocketCards(s.Player.Hand.Cards)).PocketNumber)</p>
                    <canvas id="hand">
                                @foreach (var c in s.Player.Hand.Cards)
                                {
                                    <span>@c.ToShortString()</span>
                                    
                                }
                    </canvas>
                </div>
            </div>
            }
        </div>
    </div>
</div>
@section scripts {
    @Scripts.Render("~/bundles/cards")
}